<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>

<body>

</body>
<script>
  // Array.isArray()  String.fromCharCode()

  // 构造函数Date自己的方法

  // Date.parse()  传入一个日期(日期字符串,日期对象),返回对应的毫秒数 
  var ms = Date.parse("2021-8-21 12:12:12:12");
  console.log(ms);

  var date = new Date();
  var ms = Date.parse(date);
  console.log(ms);

  // Date.now()   返回当前时间对应的毫秒数
  var date = new Date();
  console.log(date * 1);
  console.log(date.getTime());

  console.log(Date.now());





</script>

</html>